<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">
    <xi:include href="header.html" />
    <xi:include href="sidebars.html" />
    <xi:include href="footer.html" />
<head py:match="head" py:attrs="select('@*')">
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"
          py:attrs="dict(content='%s; charset=%s' % (response.content_type, response.charset))" />
<!--!<title py:if="False">Your title goes here</title>-->
    <title>${g.title}</title>
    <meta py:replace="select('*')"/>
    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" />
<!--!<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/admin.css')}" />-->
    <link rel="icon" href="${tg.url('/favicon.png')}" type="image/png" />
</head>

<py:def function="active(pagename)">${('', 'active')[defined('page') and page==pagename]}</py:def>

<body py:match="body" py:attrs="select('@*')">
  ${header()}
  <ul id="mainmenu">
    <li class="first"><a href="${tg.url('/')}" class="${active('index')}">Suche</a></li>
    <li><a href="${tg.url('/advanced_search')}" class="${active('advanced_search')}">Erweiterte Suche</a></li>
<!--! <li class="disabled"><a href="${tg.url('/quicksearch')}" class="${active('quicksearch')}">Schnellsuche</a></li>-->
    <li><a href="${tg.url('/quicksearch')}" class="${active('quicksearch')}">Schnellsuche</a></li>
    <li><a href="${tg.url('/pinboard')}" class="${active('pinboard')}">Pinnwand</a></li>
    <li><a href="${tg.url('/faq')}" class="${active('faq')}">Hilfe / FAQ</a></li>
    <li><a href="${tg.url('/contact')}" class="${active('contact')}">Kontakt</a></li>
    <li><a href="${tg.url('/about')}" class="${active('about')}">Über</a></li>
  </ul>
  <div id="content">
<!--!    <py:if test="defined('page')">
    <div class="currentpage">
     Now Viewing: <span py:replace="page"/>
     </div>
    </py:if>-->
    <py:with vars="flash=tg.flash_obj.render('flash', use_js=False)">
        <div py:if="flash" py:replace="Markup(flash)" />
    </py:with>
    <div py:replace="select('*|text()')"/>
    <!-- End of main_content -->
<!--! <div py:if="config.debug">
      <div py:if="isset(query)">${query}</div>
      <div py:if="isset(kwargs)">${kwargs}</div>
    </div> -->
    ${footer()}
  </div>
</body>
</html>
